﻿using System;
using HAVNet.Core;
using HAVNet.Core.String;


namespace HAVNet.Intros.AST
{
    public class ASTBlock : ASTNode
    {
        ASTStatements _stmts = null;

        public ASTStatements stmts { get { if (null == _stmts) _stmts = new ASTStatements(); return _stmts; } }

        public override string ToString ()
        {
            return
                "{" + Environment.NewLine +
                Lazy.toStringNN(_stmts, "", Environment.NewLine) +
                "}";
        }
    }
}

